#include "QueryBuilder.h"


QueryBuilder::QueryBuilder(void)
{
}


QueryBuilder::~QueryBuilder(void)
{
}

void QueryBuilder::initialize(QString query,QString field,QString connector)
{
	this->m_count = 0;
	this->m_query = query;
	this->m_field = field;
	this->m_connector = connector;
}

QString QueryBuilder::append(QString value)
{
	if(this->m_count)
		this->m_query.append(" ").append(this->m_connector);
	this->m_query.append(" ").append(this->m_field).append("=").append(value);
	this->m_count++;
	return m_query;
}